package 剑指Offer.medium;

public class n到1的和 {
    class Solution {
        int res = 0;
        public int sumNums(int n) {
            if (n == 1) return 1;
            return n + sumNums(n - 1);
        }
    }
}
